//
//  MixedPanel.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 17/1/7.
//  Copyright © 2017年 com.xtion.crm. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MixedImageButton.h"
#import "MixedPanelGroupTableViewCell.h"

@class MixedPanel;

@protocol MixedPanelDelegate <NSObject>

@optional

-(void)clickAddImageButtonOfMixedPanel:(MixedPanel*)mixedPanel;

-(void)clickDeleteImageButtonOfMixedPanel:(MixedPanel*)mixedPanel;

-(void)clickDeleteModeImageButtonOfMixedPanel:(MixedPanel*)mixedPanel atTag:(NSString*)tag;

-(void)mixedPanel:(MixedPanel*)imagePanel didClickedImageButton:(MixedImageButton*)imageButton imageContains:(NSArray*)imageContains;

@end

@interface MixedPanel : UIView
{
    MixedImageButton *_addImageBtn;
    MixedImageButton *_deleteImageBtn;
    
    NSMutableArray *_contain;
    
    BOOL _deleteMode;
}
-(id)initWithFrame:(CGRect)frame mixedPanelGroupTableViewCell:(MixedPanelGroupTableViewCell*)mixedPanelGroupTableViewCell;

@property(nonatomic,weak) id<MixedPanelDelegate> mixedDelegate;

@property(nonatomic,assign) BOOL hiddenDeleteTag;

@property(nonatomic,readonly) NSUInteger imageCount;

-(void)addImage:(UIImage*)image withTag:(NSString*)tag;

-(void)replaceImage:(UIImage*)image withTag:(NSString*)tag;

-(void)deleteImageWithTag:(NSString*)szTag;

-(void)show;
@end


@class FunctionPanelView;

@protocol FunctionPanelDelegate <NSObject>

@optional

- (void)mixedPanel:(FunctionPanelView *)panel clickFileBtn:(id)sender;

- (void)mixedPanel:(FunctionPanelView *)panel clickPhotoAlbumBtn:(id)sender;

- (void)mixedPanel:(FunctionPanelView *)panel clickTakePhotoBtn:(id)sender;

- (void)mixedPanel:(FunctionPanelView *)panel clickVoiceBtn:(id)sender;

- (void)mixedPanel:(FunctionPanelView *)panel clickRecordBtn:(id)sender;

- (void)mixedPanel:(FunctionPanelView *)panel clickPositionBtn:(id)sender;

@end

@interface FunctionPanelView : UIView

+(void)functionPanelViewWithDelegate:(id<FunctionPanelDelegate>)delegate;

- (void)show;

@end
